package com.wjb.feign;

import com.wjb.pojo.dto.CouponDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author : 王济彬
 * @date: 2025/5/28 - 05 - 28 - 23:25
 * @Description: com.wjb.feign
 * @version: 1.0
 */
@FeignClient(name="coupon")
public interface CouponClient {
    @GetMapping("/createCoupon")
    public boolean createCoupon(@RequestBody CouponDto couponDto);

    @GetMapping("/hasCoupon")
    public boolean hasCoupon(int couponId);

    @GetMapping("/useCoupon")
    public boolean useCoupon(int couponId);
}
